/**
* ${classInfo.classComment}安卓 initView
* @author ${authorName} ${.now?string('yyyy-MM-dd')}
*/

<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>


    <#list classInfo.fieldList as fieldItem>
        TextView textView${fieldItem.fieldName?cap_first};
    </#list>


<#--    void initFragmentView() {-->
<#--    <#list classInfo.fieldList as fieldItem>-->
<#--        textView${fieldItem.fieldName?cap_first}=getActivity().findViewById(R.id.textView${fieldItem.fieldName?cap_first});-->
<#--    </#list>-->
<#--    }-->



    void initFragmentView(View view) {
    <#list classInfo.fieldList as fieldItem>
        textView${fieldItem.fieldName?cap_first}=view.findViewById(R.id.textView${fieldItem.fieldName?cap_first});
    </#list>
    }

    void initView() {
    <#list classInfo.fieldList as fieldItem>
    <#--        // ${fieldItem.fieldComment}-->
        textView${fieldItem.fieldName?cap_first}=findViewById(R.id.textView${fieldItem.fieldName?cap_first});
    </#list>
    }


    <#list classInfo.fieldList as fieldItem>
        if(textView${fieldItem.fieldName?cap_first}!=null){
            textView${fieldItem.fieldName?cap_first}.setText(${classInfo.className?uncap_first}.get${fieldItem.fieldName?cap_first}());
        }
    </#list>

    void setViewData(${classInfo.className?cap_first} ${classInfo.className?uncap_first}){
    <#list classInfo.fieldList as fieldItem>
        if(textView${fieldItem.fieldName?cap_first}!=null){
        textView${fieldItem.fieldName?cap_first}.setText(${classInfo.className?uncap_first}.get${fieldItem.fieldName?cap_first}());
        }
    </#list>
    }
</#if>
